package org.example.chat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.sql.Timestamp;
import java.lang.String;
import java.lang.Integer;

/**
 * 群组表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "chat_group", dataSource = "chatDS")
public class ChatGroupEntity {

    /**
     * 群组ID（UUID）
     */
    @Id(keyType = KeyType.Auto)
    private String groupId;

    /**
     * 群组名称
     */
    @Column(value = "group_name")
    private String groupName;

    /**
     * 创建者ID
     */
    @Column(value = "creator_id")
    private String creatorId;

    /**
     * 最大成员数
     */
    @Column(value = "max_members")
    private Integer maxMembers;

    /**
     * 创建时间
     */
    @Column(value = "created_at")
    private Timestamp createdAt;

    /**
     * 更新时间
     */
    @Column(value = "updated_at")
    private Timestamp updatedAt;


    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public Integer getMaxMembers() {
        return maxMembers;
    }

    public void setMaxMembers(Integer maxMembers) {
        this.maxMembers = maxMembers;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }
}
